using NetProtocol.POD;
using System;
using System.Collections.Generic;

namespace IQIGame.Onigao.GamePlay
{
    public class MallModuleData
    {
        /// <summary>
        /// 商城物品购买次数限制记录,会根据刷新类型重置, key=mallItemCid, value=次数
        /// </summary>
        public Dictionary<int, int> mallBuyCountRecords { get; private set; }
        /// <summary>
        /// 商城开始售卖时间,key=mallItemCid,value=开始时间(时间戳,秒)	
        /// </summary>
        public Dictionary<int, int> mallStartSellTime { get; private set; }
        /// <summary>
        /// 充值挡位次数
        /// </summary>
        public Dictionary<int, int> payCount { get; private set; }
        /// <summary>
        /// 月卡状态，key=cid，value=过期时间，时间戳（秒）
        /// </summary>
        public Dictionary<int, int> monthCard { get; private set; }

        public MallModuleData(Dictionary<int, int> mallBuyCountRecords, Dictionary<int, int> mallStartSellTime, Dictionary<int, int> payCount, Dictionary<int, int> monthCard)
        {
            this.mallBuyCountRecords = mallBuyCountRecords;
            this.mallStartSellTime = mallStartSellTime;
            this.monthCard = payCount;
            this.payCount = monthCard;
        }

        public void RefreshMallBuyCountRecords(Dictionary<int, int> mallBuyCountRecords)
        {
            this.mallBuyCountRecords = mallBuyCountRecords;
        }

        public void RefreshMallStartSellTime(Dictionary<int, int> mallStartSellTime)
        {
            this.mallStartSellTime = mallStartSellTime;
        }

        public void RefreshMonthCard(Dictionary<int, int> monthCard)
        {
            this.monthCard = monthCard;
        }

        public void RefreshPayCount(Dictionary<int, int> payCount)
        {
            this.payCount = payCount;
        }

    }
}
